<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>New Customer</title>
    <meta name="layout" content="main">
  </head>
  <body>
    <br>
    <g:link class="list" action="newRepairShop">
      <div class="tabNoSelected">
        Repair Shop
      </div>
    </g:link>
  
    <g:link class="list" action="newCustomer">
      <div class="tabSelected">
        Customer
      </div>
    </g:link>
  
    <g:link class="list" action="newMechanicalTechnician">
      <div class="tabNoSelected">
        Mechanical Technician
      </div>
    </g:link>
  
    <g:link class="list" action="newVehicle">
      <div class="tabNoSelected">
        Vehicle
      </div>
    </g:link>
  
    <g:link class="list" action="logout" controller="LogIn">
      <div class="tabNoSelected">Log Out</div>
    </g:link>
  
    <div class="tabContent"> 
      <g:link class="list" action="newCustomer" >
        <div class="tabSelected">
          New
        </div>
      </g:link>
      <g:link class="list" action="listCustomer" >
        <div class="tabNoSelected">
          List
        </div>
      </g:link>
    </div>
    <hr>
    
    </div>
		<div id="create-customer" class="content scaffold-create" role="main">
			<h1>Create Customer</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${customerInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${customerInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form action="saveCustomer" >
				<fieldset class="form">
					<g:render template="formCustomer"/>
				</fieldset>
				<fieldset class="buttons">
					<g:submitButton name="create" class="save" value="${message(code: 'Create')}" />
				</fieldset>
			</g:form>
		</div>
  </body>
</html>
